<template>
  <el-alert
    :title="fld.alertTitle"
    :type="type"
    :closable="fld.closable">
  </el-alert>
</template>
<script>
  define(['vue'],function(vue){
    return vue.component('comp-alert',{
      template:template,
      props : {
        fld :{required:false,default:{'alertType':'info','alertTitle':'我是标题.alertTitle','closable':false}}
      },
      data : function(){
        return {
          'type' : this.fld.alertType ? this.fld.alertType : 'info',
        };
      },
      methods:{

      }
    });
  });
</script>